﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            SqlConnection conn = new SqlConnection("Data Source=server4.srs_pwm.net;Initial Catalog=SalesManager;Persist Security Info=True;User ID=sa;Password=shipright;Pooling=False;MultipleActiveResultSets=True");
            conn.Open();
            //SqlCommand cmm = conn.CreateCommand();
            //cmm.CommandText = "insert into tblTransaction ( TransactionTypeCode, AccountID, ProcessorCode, Amount, CreateDate, TransactionStatusCode, OrderID )\n" +
            //    "select 'B', 72844, 'A', 10, getdate(), 'E', 277857;\n" +
            //    "select SCOPE_IDENTITY()";
            //object transactionID = cmm.ExecuteScalar();

            int transactionSubmitID = OnlinePayments.PaymentProcessor.AuthorizeTransaction(conn, 913413, "5179");

            //int transactionSubmitID = OnlinePayments.PaymentProcessor.ProcessTransaction(conn, 72845);
        }
    }
}
